<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

<h:head>
    <title> 三一 - 问卷调查</title>
    <link href="../../css/component.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="../../js/highcharts.js"></script>
    <script type="text/javascript" src="../../js/drawChart.js"></script>
</h:head>

<h:body>
    <ui:param name="bean" value="#{data3Action}"/>

    <span class="pagetitle">总体概况</span>
    <p:separator/>

    <!-- 右侧页面顶部查询部分 -->
    <h:form id="fsearch">
        <p:growl id="growl" showDetail="true" sticky="true"/>
        <h:outputLabel value="微信号："/>
        <p:inputText value="#{bean.hao}"/>
        &#160;&#160;&#160;

        <p:commandButton value="查询" action="#{bean.search()}" update=":data" ajax="false"/>
    </h:form>
    <br/>

    <!-- 数据展示部分，包含表格和图表 -->
    <h:form id="dform">
        <div class="data" id="data">
            <p:panel id="panel1" header="问卷详细数据" style="margin-bottom:10px;">
                <p:dataTable id="dlist1" var="l" value="#{bean.datas}" resizableColumns="true" paginator="true"
                             paginatorPosition="top"
                             paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown} {Exporters}"
                             rowsPerPageTemplate="15,30" rows="15" style="text-align:center;">
                    <f:facet name="{Exporters}">
                        <h:commandLink styleClass="exporter">
                            <p:graphicImage url="/resources/images/excel.png" height="25px"/>
                            <p:dataExporter type="xls" target="dlist1"
                                            fileName="data3-#{pageHelper.getNewDateDetailStr()}"/>
                        </h:commandLink>
                    </f:facet>
                    <p:column headerText="微信号" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.hao}"/>
                    </p:column>
                    <p:column headerText="用时" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.time}"/>
                    </p:column>
                    <p:column headerText="日期" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.dateStr}"/>
                    </p:column>
                    <p:column headerText="第1题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                    <p:column headerText="第2题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                    <p:column headerText="第3题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                    <p:column headerText="第4题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                    <p:column headerText="第5题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                    <p:column headerText="第6题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                    <p:column headerText="第15题" styleClass="column" style="width:80px">
                        <h:outputLabel value="#{l.t1}"/>
                    </p:column>
                </p:dataTable>
            </p:panel>
        </div>
    </h:form>

    <!-- 页脚 -->
    <div class="footer"></div>
</h:body>
</html>
